package FactoryMethod;

public abstract class Ballpen {
    public Ballpen(){
        System.out.println("生产了一只装有"+ getPencore().color + "笔芯的圆珠笔");
    }

    protected abstract PenCore getPencore();
}
